import axios from "axios";

//用户角色列表
let list = (params) => axios.get('/api/role/list', { params })

//用户角色配置菜单
let config = (params) => axios.get('/api/role/config', { params })

//更新角色
let edit = (data) => axios.put('/api/role', data)

//删除角色
let remove = (params) => axios.delete('/api/role', { params })

//添加
let add = (data) => axios.post('/api/role', data)

export default {
	list,
	config,
	edit,
	remove,
	add
}
